/* ============================ 表格优化 ============================*/
table {
    width: 100% !important;
    page-break-inside: auto;
    break-inside: avoid;
}

tr {
    page-break-inside: avoid;
    page-break-after: auto;
}

td, th {
    padding: 0.3em 0.5em !important;
    border: 0.5pt solid #ddd !important;
}

/* 避免表格跨页断裂 */
.no-break-table {
    page-break-inside: avoid !important;
}

/* 表头重复 */
thead {
    display: table-header-group !important;
}